home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
001a
/
ezzcomm.zip
/
RAIN.T
< prev
next >
Wrap
Text File
|
1991-02-16
|
5KB
|
125 lines
: EZ-ZCOMM Copyright 1991 by Roger E. Hough, All Rights Reserved.
: Licensed for use at your own risk without fee. Altered versions,
: when distributed, must be clearly marked as altered and accompanied
: by the originals.
:
: Entry in %ZCUSER.IDS for RAIN: remote,password,last
: remote: argument of "call" command
: password: signon password (required)
: last: last name. Optional: assumed equal to %n2
: Upload files listed in <bbs>.ul as follows: filename.ext,description
: description size: :--------:---------:---------:---------:------:
ena -K!Z p?0 findq "\n%remote," %lib/%ZCUSER.ids
if ? split z0 , , "";if %z1 goto haveuser
pat;pat 24cp "rz\r**\030" "@rz -p";while c wait -f600
ife r nolog close;return
haveuser:
if !%z2 sets z2 %n2
pat 22$cp "to continue\a" \r
pat 23$cp "to continue" \r
pat;pat 0i "<ENTER> :";pat 1i "COMPATIBLE (Y/N)?";wait -f2
while c&&!1&&L<15 mput \r wait -f1
if n bye;ife r nolog closerx;return
pat;pat 2c "Password please (or guest) :" "%z1\r"
pat 3c "Your last name please :" "%z2\r"
pat 4c$ "Command : \a" S\r
pat 5$ "Command : "
mput Y wait -f30;if n bye;ife r nolog close;return
pat;mput M;pat 0$ "Command : ";pat 1c$ "ss <ENTER>" \r
wait -f30;if n bye;ife r nolog close;return
pat;mput R;pat 0$ "Command : ";pat 1c$ "ss <ENTER>" \r;pat 2c <N>
wait -f30;if n bye;ife r nolog close;return
if !2 pat;mput Q;pat 0$ "Command : ";pat 1c$ "ss <ENTER>" \r;wait -f30;ife !n goto escan;bye;ife r nolog close;return
pat;mput N
scan:
pat;pat 0$ "Command : ";pat 1c$ "ss <ENTER>" \r;pat 2l "Msg # "
wait -f30;if n bye;ife r nolog close;return
if 0 goto escan
split y2 "S" " " " " " " ""
sets z0 %y2;w;if %z2==1 sets z2 "0%z2"
ki;ife r nolog close;create -+S!i %n9/%remote%z2.log
echof \T%z0
pat;pat 0c \n "@w"
pat 1 "<Q>uit <T>hread <A>gain : "
wait -f30;if n bye;ife r nolog close;return
ki;ife r nolog close;create -+S %n9/ZC%d%ano.LOG
mput C;goback scan
escan:
pat;mput Q;pat 0$ "Command : ";pat 1c$ "ss <ENTER>" \r;wait -f30;if n bye;ife r nolog close;return
pat;mput f;pat 0$ "Command : ";wait -f30;if n bye;ife r nolog close;return
if !f%n8/%remote.ul goto nupl
pat;mput F;pat 0$ "Command : ";pat 1c$ "ss <ENTER>" \r;wait -f30;if n bye;ife r nolog close;return
display inhibit;open -!g %n8/%remote.ul;display noinhibit;if !t goto dupl
ulsk:
grab z1;if !t goto dupl
setc z9 \032;if Iz9,z1 nolog closetx;goto dupl
split z1 , "";if !%z0||!%z1 goback ulsk
sets z9 %z0;pat;mput U
pat 0c "library for upload : " 1
pat 1c "immediately? " Y
pat 2c "for your upload (Y/N)? " Y
pat 3c ".ext) of file : " "@putv z9;put \r;setc z9 \&"
pat 4c "YMODEM upload"
pat 5c "XMODEM-1K upload"
pat 6c "ZMODEM upload"
pat 7 "Ready to receive"
pat 8c$ "ss <ENTER>" \r
pat 9$ "Command : "
wait -f30;if n bye;ife r nolog close;return
if 9 goback ulsk
ife 6 sz -km %z0;else ife 4||5 sx -k %z0;else sx %z0
pat;pat 0 ":------:\r\n> "; pat 1$ "Command : ";pat 2c$ "ss <ENTER>" \r
wait -f30;if n bye;ife r nolog close;return
if 1 goback ulsk
pat;putv z1;put \r;pat 0i "\r\n 1 > "
wait -f30;if n bye;ife r nolog close;return
pat;mput \r
pat 1c "Command: " S
pat 2$ "Command : "
pat 3c$ "ss <ENTER>" \r
wait -f30;if n bye;ife r nolog close;return
goback ulsk
dupl:
del %n8/%remote.ul
pat;mput G;pat 0$ "Command : ";pat 1c$ "ss <ENTER>" \r;wait -f30;if n bye;ife r nolog close;return
nupl:
pat;mput 1;pat 0$ "Command : ";pat 1c$ "ss <ENTER>" \r;wait -f30;if n bye;ife r nolog close;return
gosub .%lib/agelist.t;if as0<14 goto nolist
pat;mput m;pat 0i \n;wait -f30;if n bye;ife r nolog close;return
ki;create -yS!i %n7/%remote.lst
if r split t " ";echof "\T%telno %remote %z1"
pat;pat 0$ " review : ";wait -f30;if n bye;ife r nolog close;return
pat;mput 99\r
pat 0l "\n**** End of directories ****";pat 1l "\n**** End of directory ****"
wait -f30;if n bye;ife r nolog close;return
if r display inhibit;close;display noinhibit
pat;pat 0$ "Command : ";pat 1c$ "ss <ENTER>" \r
wait -f30;if n bye;ife r nolog close;return
nolist:
ki;create -+ %n9/ZC%d%ano.LOG
if !f%n8/%remote.dl goto ndnl
display inhibit;open -!g %n8/%remote.dl;display noinhibit;if !t goto ddnl
dlsk:
grab z1;if !t goto ddnl
setc z9 \032;if Iz9,z1 nolog closetx;goto ddnl
split z1 , "";if !%z0 goback dlsk
sets z9 %z0;pat;mput F
pat 0c "(filename.ext) : " "@putv z9;put \r;setc z9 \&"
pat 1c$ "ss <ENTER>" \r
pat 2c "Ymodem download"
pat 3c "ZMODEM download"
pat 4 "Ready to send"
wait -f30;if n bye;ife r nolog close;return
sleep 5;ife 3 rz -mp;else rc %z0
pat;pat 0$ "Command : ";pat 1c$ "ss <ENTER>" \r
wait -f30;if n bye;ife r nolog close;return
goback dlsk
ddnl:
del %n8/%remote.dl
ndnl:
pat;mput Q;pat 0$ "Command : ";pat 1c$ "ss <ENTER>" \r;wait -f30;if n bye;ife r nolog close;return
pat;lput "\r\n%n1, press alt-N if you want to run the session manually.\r\n"
pat;pat 24cp "rz\r**\030" "@rz -p";wait -F5;if !c bye;ife r nolog close;return
pat;mput T;pat 0$ "Command : ";pat 1c$ "ss <ENTER>" \r;wait -f30;if n bye;ife r nolog close;return
pat;mput N;wait -F35;ife c bye;ife r close;return